/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simulation;

/**
 *
 * @author Danielondon
 */
public enum CarState {
    DISCONNECTED,
    CONNECTED;
    
    
    public static CarState fromInteger(int x) {
        switch(x) {
            case 0:
                return DISCONNECTED;
            case 1:
                return CONNECTED;
        }
        return null;
    }
}
